#include"VertexArray.h"
//#include"mgepch.h"
#include"Renderer.h"
#include"myMiniEngine/Platform/OpenGL/OpenGLVertexArray.h"

namespace myMiniEngine {

	VertexArray* VertexArray::Create() {
		switch (Renderer::GetAPI())
		{
		case RendererAPI::API::None:    MGE_CORE_ASSERT(false, "RendererAPI::None is currently not supported!"); return nullptr;
		case RendererAPI::API::OpenGL:  return new OpenGLVertexArray();
		}

		MGE_CORE_ASSERT(false, "Unknown RendererAPI!");
		return nullptr;
	}

}